﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;

/// <summary>
///ImageListShow 的摘要说明
/// </summary>
public class ImageListShow:IListColumns
{
	public ImageListShow()
	{
		//
		//TODO: 在此处添加构造函数逻辑
		//
	}

    #region IListColumns 成员

    public System.Web.UI.WebControls.DataControlField GetListField(ConfigColumns col)
    {
        ImageField field = new ImageField();
        field.HeaderText = col.ListShowName;
        field.DataImageUrlField = col.ColumnName;
        field.DataImageUrlFormatString = col.ListShowFormate;
        field.ControlStyle.Width = new Unit(col.ListShowImgWidth);
        field.ControlStyle.Height = new Unit(col.ListShowImgHeight);

        return field;
    }

    #endregion
}
